Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 25: Controlling Detail

../ch25/25fig06.gif
Figure 25.6

A dungeon-room floor.

25fig06.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Transform {
    translation -5.0 0.0 -2.5
    children Shape {
        appearance Appearance {
            material Material { diffuseColor 1.0 1.0 1.0 }
            texture ImageTexture { url "stone2.jpg" }
            textureTransform TextureTransform {
                scale 16.0 8.0
            }
        }
        geometry ElevationGrid {
            xDimension 8
            zDimension 8
            xSpacing   1.4285714
            zSpacing   0.7142857
            solid      FALSE
            height [
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
            ]
        }
    }
}